﻿namespace Sgr.Organizations
{
    internal class NullIOrganizationProvider : IOrganizationProvider
    {
        //// 共享的只读空集合，避免每次分配
        //private static readonly IReadOnlyList<OrganizationInfo> EmptyList = Array.Empty<OrganizationInfo>();

        //public Task<IReadOnlyList<OrganizationInfo>> GetAllAsync(CancellationToken ct = default)
        //{
        //    return Task.FromResult(EmptyList);
        //}

        //public Task<OrganizationInfo?> GetByExternalIdAsync(string externalId, string source, CancellationToken ct = default)
        //{
        //    return Task.FromResult<OrganizationInfo?>(null);
        //}

        public Task<OrganizationInfo?> GetByIdAsync(string orgId, CancellationToken ct = default)
        {
            return Task.FromResult<OrganizationInfo?>(null);
        }
    }
}